
# break语句 ： 终止循环
# 示例：循环1-10的数并打印，当等于7时退出循环
for x in range(1,11,1):
    print(x)
    if x == 7:
        break

print("=======")
# continue : 跳过本次循环
# 示例：循环1-10的数并打印，当等于7时跳过本次循环
for x in range(1,11,1):
    if x == 7:
        continue
    print(x)